﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ATM.Entities
{
    public class Transaction
    {
        #region Properties
        public int TransactionId { get; set; }
        /// <summary>
        /// ID may ATM
        /// </summary>
        public int AtmId { get; set; }
        /// <summary>
        /// Loai giao dich 
        /// 1 - Withdraw
        /// 2 - ViewBalance
        /// 3 - Change PIN
        /// 
        /// </summary>
        public int TransactionType { get; set; }
        /// <summary>
        /// Luong tien trong giao dich
        /// </summary>
        public double Amount { get; set; }
        /// <summary>
        /// Phi dich vu
        /// </summary>
        public double Price { get; set; }
        /// <summary>
        /// Ngay thuc hien giao dich
        /// </summary>
        public DateTime Date { get; set; }
        #endregion


        #region Constructor
        public Transaction(DateTime _date, double _amount, int _type)
        {
            Date = _date;
            Amount = _amount;
            TransactionType = _type;
        }
        #endregion
    }
}
